package com.hyp.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WeChatResponse { // 定义一个内部类来存储微信API的响应
    private String openid;
    private String session_key;
        private int errcode;  // 添加这个字段
        private String errmsg; // 添加这个字段
    // Getters and Setters
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSession_key() {
        return session_key;
    }

    public void setSession_key(String session_key) {
        this.session_key = session_key;
    }
}
